using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using Domain.Models.Mapping;
using Domain.Models;

namespace Domain.Models
{
    public partial class MVVMDBContext : DbContext
    {
        static MVVMDBContext()
        {
            Database.SetInitializer<MVVMDBContext>(null);
        }

        public MVVMDBContext()
            : base("Name=MVVMDBContext")
        {
        }

        public DbSet<Cource> Cources { get; set; }
        public DbSet<Student> Students { get; set; }
  

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Configurations.Add(new CourceMap());
            modelBuilder.Configurations.Add(new StudentMap());
          
        }
    }
}
